import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/',
      redirect:{
        name:'indexPages',
      },
    },
    {
      path: '/index',
      name: 'indexPages',
      component: resolve=>require(['@/components/index'],resolve),
      meta:{
        index:'0',
        title:'火炬数据',
      },
    },
    {
      path:'/mine',
      name:'minePage',
      component:resolve=>require(['@/components/mine/mine'],resolve),
      meta:{
        title:'个人中心',
        index:'0',
      }
    },
    {
      path:'/message',
      name:'messagePage',
      component:resolve=>require(['@/components/message'],resolve),
      meta:{
        title:'消息通知',
        index:'0',
      }
    },
    {
      path:'/change_mobile',
      name:'changeMobile',
      component:resolve=>require(['@/components/mine/change_mobile'],resolve),
      meta:{
        title:'更换手机号',
        index:'1',
      }
    },
    {
      path:'/change_message',
      name:'changeMessage',
      component:resolve=>require(['@/components/mine/change_message'],resolve),
      meta:{
        title:'修改资料',
        index:'1',
      }
    },
    {
      path:'/id_code',
      name:'idCode',
      component:resolve=>require(['@/components/api/id_code'],resolve),
      meta:{
        title:'身份证二要素验证',
        index:'1',
      }
    },
    {
      path:'/id_code_picture',
      name:'idCodePicture',
      component:resolve=>require(['@/components/api/id_code_picture'],resolve),
      meta:{
        title:'身份证二要素返照',
        index:'1'
      }
    },
    {
      path:'/modify_psd',
      name:'modifyPsd',
      component:resolve=>require(['@/components/mine/modify_psd'],resolve),
      meta:{
        title:'修改密码',
        index:'1',
      }
    },
    {
      path:'/operator_two',
      name:'operatorTwo',
      component:resolve=>require(['@/components/api/operator_two'],resolve),
      meta:{
        title:'运营商二要素验证',
        index:'1'
      }
    },
    {
      path:'/operator',
      name:'operatorPage',
      component:resolve=>require(['@/components/api/operator'],resolve),
      meta:{
        title:'运营商三要素验证',
        index:'1'
      }
    },
    {
      path:'/recharge',
      name:'rechargePage',
      component:resolve=>require(['@/components/api/recharge'],resolve),
      meta:{
        title:'优惠充值',
        index:'-1',
      }
    },
    {
      path:'/bind_mobile',
      name:'bindMobile',
      component:resolve=>require(['@/components/mine/bind_mobile'],resolve),
      meta:{
        title:'绑定新手机',
        index:'2',
      }
    },
    {
      path:'/pay_success',
      name:'paySuccess',
      component:resolve=>require(['@/components/api/pay_success'],resolve),
      meta:{
        title:'充值详情',
      }
    },
    {
      path:'/to_loan',
      name:'toLoan',
      component:resolve=>require(['@/components/api/to_loan'],resolve),
      meta:{
        title:'网络借贷黑名单查询'
      }
    },
    {
      path:'/balance',
      name:'balancePage',
      component:resolve=>require(['@/components/mine/balance'],resolve),
      meta:{
        title:'账户余额',
        index:'0',
      }
    },
    {
      path:'/bank_one',
      name:'bankOne',
      component:resolve=>require(['@/components/api/bank_one'],resolve),
      meta:{
        title:'银行卡一要素查询',
        index:'1'
      }
    },
    {
      path:'/bank_two',
      name:'bankTwo',
      component:resolve=>require(['@/components/api/bank_two'],resolve),
      meta:{
        title:'银行卡二要素验证',
        index:'1'
      }
    },
    {
      path:'/bank_three',
      name:'bankThree',
      component:resolve=>require(['@/components/api/bank_three'],resolve),
      meta:{
        title:'银行卡三要素验证',
        index:'1'
      }
    },
    {
      path:'/bank_four',
      name:'bankFour',
      component:resolve=>require(['@/components/api/bank_four'],resolve),
      meta:{
        title:'银行卡四要素验证',
        index:'1'
      }
    },
    {
      path:'/deal_detail',
      name:'dealDetail',
      component:resolve=>require(['@/components/mine/deal_detail'],resolve),
      meta:{
        title:'交易明细',
        index:"3",
      }
    },
    {
      path:'/deal_info',
      name:'dealInfo',
      component:resolve=>require(['@/components/mine/deal_info'],resolve),
      meta:{
        title:'交易详情',
        index:"4",
      }
    },
    {
      path:'/login',
      name:'loginPage',
      component:resolve=>require(['@/components/login/login'],resolve),
      meta:{
        title:'登录',
        index:'3',
      }
    },
    {
      path:'/callback',
      name:'callBack',
      component:resolve=>require(['@/components/callback'],resolve),
      meta:{
        title:'登录中',
      }
    },
    {
      path:'/loginback',
      name:'loginBack',
      component:resolve=>require(['@/components/loginback'],resolve),
      meta:{
        title:'登录',
        index:'0',
      }
    },
    {
      path:'/forget_psd',
      name:'forgetPsd',
      component:resolve=>require(['@/components/login/forget_psd'],resolve),
      meta:{
        title:'忘记密码',
        index:'-3',
      }
    },
    {
      path:'/register',
      name:'registerPage',
      component:resolve=>require(['@/components/login/register'],resolve),
      meta:{
        title:'注册',
        index:'1',
      }
    },
    {
      path:'/id_code_result',
      name:'idCodeResult',
      component:resolve=>require(['@/components/result/id_code_result'],resolve),
      meta:{
        title:'身份证二要素验证结果',
        index:'3'
      }
    },
    {
      path:'/id_copic_result',
      name:'idCopicResult',
      component:resolve=>require(['@/components/result/id_copic_result'],resolve),
      meta:{
        title:'身份证二要素带返照结果',
        index:'3'
      }
    },
    {
      path:'/bank_one_result',
      name:'bankOneResult',
      component:resolve=>require(['@/components/result/bank_one_result'],resolve),
      meta:{
        title:'银行卡一要素查询结果',
        index:'3'
      }
    },
    {
      path:'/bank_two_result',
      name:'bankTwoResult',
      component:resolve=>require(['@/components/result/bank_two_result'],resolve),
      meta:{
        title:'银行卡二要素验证结果',
        index:'3'
      }
    },
    {
      path:'/bank_three_result',
      name:'bankThreeResult',
      component:resolve=>require(['@/components/result/bank_three_result'],resolve),
      meta:{
        title:'银行卡三要素验证结果',
        index:'3'
      }
    },
    {
      path:'/bank_four_result',
      name:'bankFourResult',
      component:resolve=>require(['@/components/result/bank_four_result'],resolve),
      meta:{
        title:'银行卡四要素验证结果',
        index:'3'
      }

    },
    {
      path:'/operator_two_result',
      name:'operatorTwoResult',
      component:resolve=>require(['@/components/result/operator_two_result'],resolve),
      meta:{
        title:'运营商二要素验证结果',
        index:'3'
      }

    },
    {
      path:'/operator_three_result',
      name:'operatorThreeResult',
      component:resolve=>require(['@/components/result/operator_three_result'],resolve),
      meta:{
        title:'运营商三要素验证结果',
        index:'3'
      }

    },
    {
      path:'/agreement_one',
      name:'agreementOne',
      component:resolve=>require(['@/components/api/agreement_one'],resolve),
      meta:{
        title:'用户查询服务授权协议',
        index:'5'
      }
    },
    {
      path:'/mianze',
      name:'mianzePage',
      component:resolve=>require(['@/components/api/mianze'],resolve),
      meta:{
        title:'免责协议',
        index:'5'
      }
    },
    {
      path:'/agreement_two',
      name:'agreementTwo',
      component:resolve=>require(['@/components/api/agreement_two'],resolve),
      meta:{
        title:'火炬网电子钱包服务协议',
        index:'5'
      }
    },
    {
      path:'/agreement_three',
      name:'agreementThree',
      component:resolve=>require(['@/components/api/agreement_three'],resolve),
      meta:{
        title:'火炬网注册协议',
        index:'5'
      }
    },
    {
      path:'/company_list',
      name:'companyList',
      component:resolve=>require(['@/components/index/company_list'],resolve),
      meta:{
        title:'搜索结果',
        index:'3',
        // keepAlive:true,
      }
    },
    {
      path:'/company_info',
      name:'companyInfo',
      component:resolve=>require(['@/components/index/company_info'],resolve),
      meta:{
        title:'搜索详情',
        index:'6',
      }
    },
    {
      path:'/follow_list',
      name:'followList',
      component:resolve=>require(['@/components/mine/follow_list'],resolve),
      meta:{
        title:'关注列表',
      }
    },
    {
      path:'/msg_detail',
      name:'msgDetail',
      component:resolve=>require(['@/components/mine/msg_detail'],resolve),
      meta:{
        title:'消息详情',
        index:'4'
      }
    },
    {
      path:'/mobile_net',
      name:'mobileNet',
      component:resolve=>require(['@/components/api/mobile_net'],resolve),
      meta:{
        title:'手机在网状态查询',
        index:'1'
      }
    },
    {
      path:'/mobile_enter',
      name:'mobileEnter',
      component:resolve=>require(['@/components/api/mobile_enter'],resolve),
      meta:{
        title:'手机入网时长查询',
        index:'1'
      }
    },
    {
      path:'/mobile_net_result',
      name:'mobileNetResult',
      component:resolve=>require(['@/components/result/mobile_net_result'],resolve),
      meta:{
        title:'手机在网状态查询结果',
        index:'3'
      }
    },
    {
      path:'/mobile_enter_result',
      name:'mobileEnterResult',
      component:resolve=>require(['@/components/result/mobile_enter_result'],resolve),
      meta:{
        title:'手机入网时长查询结果',
        index:'3'
      }
    },
    {
      path:'/mobile_info',
      name:'mobileInfo',
      component:resolve=>require(['@/components/api/mobile_info'],resolve),
      meta:{
        title:'手机号基本信息查询',
        index:'1',
      }
    },
    {
      path:'/mobile_info_result',
      name:'mobileInfoResult',
      component:resolve=>require(['@/components/result/mobile_info_result'],resolve),
      meta:{
        title:'手机号基本信息查询结果',
        index:'3',
      }
    },
    {
      path:'/overdue',
      name:'overDue',
      component:resolve=>require(['@/components/api/overdue'],resolve),
      meta:{
        title:'逾期黑名单验证',
        index:'1',
      }
    },
    {
      path:'/overdue_result',
      name:'overdueResult',
      component:resolve=>require(['@/components/result/overdue_result'],resolve),
      meta:{
        title:'逾期黑名单验证结果',
        index:'3',
      }
    },
    {
      path:'/risk_report',
      name:'riskReport',
      component:resolve=>require(['@/components/api/risk_report'],resolve),
      meta:{
        title:'风险审核报告（精简版）',
        index:'1',
      }
    },
    {
      path:'/risk_report_result',
      name:'riskReportResult',
      component:resolve=>require(['@/components/result/risk_report_result'],resolve),
      meta:{
        title:'风险审核报告结果',
        index:'3',
      }
    },
    {
      path:'/ios_detail',
      name:'iosDetail',
      component:resolve=>require(['@/components/result/ios_detail'],resolve),
      meta:{
        title:'下载结果',
        index:'4',
      }
    },
    {
      path:'/risk_report_com',
      name:'riskReportCom',
      component:resolve=>require(['@/components/api/risk_report_com'],resolve),
      meta:{
        title:'风险审核报告（详细版）',
        index:'1',
      }
    },
    {
      path:'/risk_com_result',
      name:'riskComResult',
      component:resolve=>require(['@/components/result/risk_com_result'],resolve),
      meta:{
        title:'风险审核报告结果',
        index:'3',
      }
    },
    {
      path:'/car_policy',
      name:'carPolicy',
      component:resolve=>require(['@/components/api/car_policy'],resolve),
      meta:{
        title:'车辆保单信息查询',
        index:'1',
      }
    },
    {
      path:'/car_policy_result',
      name:'carPolicyResult',
      component:resolve=>require(['@/components/result/car_policy_result'],resolve),
      meta:{
        title:'车辆保单信息查询结果',
        index:'3',
      }
    },
    {
      path:'/car_danger',
      name:'carDanger',
      component:resolve=>require(['@/components/api/car_danger'],resolve),
      meta:{
        title:'车辆出险查询',
        index:'1',
      }
    },
    {
      path:'/car_danger_result',
      name:'carDangerResult',
      component:resolve=>require(['@/components/result/car_danger_result'],resolve),
      meta:{
        title:'车辆出险查询结果',
        index:'3',
      }
    },
    {
      path:'/car_info',
      name:'carInfo',
      component:resolve=>require(['@/components/api/car_info'],resolve),
      meta:{
        title:'车辆基本信息',
        index:'1',
      }
    },
    {
      path:'/car_info_result',
      name:'carInfoResult',
      component:resolve=>require(['@/components/result/car_info_result'],resolve),
      meta:{
        title:'车辆基本信息结果',
        index:'3',
      }
    },
    {
      path:'/car_law',
      name:'carLaw',
      component:resolve=>require(['@/components/api/car_law'],resolve),
      meta:{
        title:'车辆违章查询',
        index:'1',
      }
    },
    {
      path:'/car_law_result',
      name:'carLawResult',
      component:resolve=>require(['@/components/result/car_law_result'],resolve),
      meta:{
        title:'车辆违章查询结果',
        index:'3',
      }
    },
    {
      path:'/driver_card',
      name:'driverCard',
      component:resolve=>require(['@/components/api/driver_card'],resolve),
      meta:{
        title:'行驶证信息查询',
        index:'1',
      }
    },
    {
      path:'/driver_card_result',
      name:'driverCardResult',
      component:resolve=>require(['@/components/result/driver_card_result'],resolve),
      meta:{
        title:'行驶证信息查询结果',
        index:'3',
      }
    },
    {
      path:'/license_search',
      name:'licenseSearch',
      component:resolve=>require(['@/components/api/license_search'],resolve),
      meta:{
        title:'驾驶证信息查询',
        index:'1',
      }
    },
    {
      path:'/license_search_result',
      name:'licenseSearchResult',
      component:resolve=>require(['@/components/result/license_search_result'],resolve),
      meta:{
        title:'驾驶证信息查询结果',
        index:'3',
      }
    },
    {
      path:'/car_vin',
      name:'carVin',
      component:resolve=>require(['@/components/api/car_vin'],resolve),
      meta:{
        title:'车辆VIN解析',
        index:'1',
      }
    },
    {
      path:'/car_vin_result',
      name:'carVinResult',
      component:resolve=>require(['@/components/result/car_vin_result'],resolve),
      meta:{
        title:'车辆VIN解析结果',
        index:'3',
      }
    },
    {
      path:'/car_choose',
      name:'carChoose',
      component:resolve=>require(['@/components/api/car_choose'],resolve),
      meta:{
        title:'车辆选配信息查询',
        index:'1',
      }
    },
    {
      path:'/car_choose_result',
      name:'carChooseResult',
      component:resolve=>require(['@/components/result/car_choose_result'],resolve),
      meta:{
        title:'车辆选配信息查询结果',
        index:'3',
      }
    },
    {
      path:'/mobile_smal',
      name:'mobileSmal',
      component:resolve=>require(['@/components/api/mobile_smal'],resolve),
      meta:{
        title:'通信小号验证',
        index:'1',
      }
    },
    {
      path:'/mobile_smal_result',
      name:'mobileSmalResult',
      component:resolve=>require(['@/components/result/mobile_smal_result'],resolve),
      meta:{
        title:'通信小号验证结果',
        index:'3',
      }
    },
    {
      path:'/truck_driver',
      name:'truckDriver',
      component:resolve=>require(['@/components/api/truck_driver'],resolve),
      meta:{
        title:'货车司机验证',
        index:'1',
      }
    },
    {
      path:'/truck_driver_result',
      name:'truckDriverResult',
      component:resolve=>require(['@/components/result/truck_driver_result'],resolve),
      meta:{
        title:'货车司机验证结果',
        index:'3',
      }
    },
    {
      path:'/credit_search_404_ss',
      name:'creditSearch',
      component:resolve=>require(['@/components/api/credit_search'],resolve),
      meta:{
        title:'征信查询',
        index:'0',
      }
    },
    {
      path:'/car_list',
      name:'carList',
      component:resolve=>require(['@/components/api/car_list'],resolve),
      meta:{
        title:'车辆查询',
        index:'0',
      }
    },
    {
      path:'/car_example',
      name:'carExample',
      component:resolve=>require(['@/components/result/car_example'],resolve),
      meta:{
        title:'样例',
        index:'1',
      }
    },
    {
      path:'/detail_img',
      name:'detailImg',
      component:resolve=>require(['@/components/result/detail_img'],resolve),
      meta:{
        title:'风险审核报告样例图（精简版）',
        index:'1',
      }
    },
    {
      path:'/detail_img2',
      name:'detailImg2',
      component:resolve=>require(['@/components/result/detail_img2'],resolve),
      meta:{
        title:'风险审核报告样例图（详细版）',
        index:'1',
      }
    },
    {
      path:'/price_query',
      name:'priceQuery',
      component:resolve=>require(['@/components/api/price_query'],resolve),
      meta:{
        title:'运价查询',
        index:'1'
      }
    },
    {
      path:'/price_query_result',
      name:'priceQueryResult',
      component:resolve=>require(['@/components/result/price_query_result'],resolve),
      meta:{
        title:'运价查询结果',
        index:'3'
      }
    },
    {
      path:'/logistics_area',
      name:'logisticsArea',
      component:resolve=>require(['@/components/api/logistics_area'],resolve),
      meta:{
        title:'物流园查询',
        index:'1'
      }
    },
    {
      path:'/logistics_area_result',
      name:'logisticsAreaResult',
      component:resolve=>require(['@/components/result/logistics_area_result'],resolve),
      meta:{
        title:'物流园查询结果',
        index:'3',
      }
    }


  ]
})
